#include<stdio.h>
#include<string.h>
#include<unistd.h>
#include<stdlib.h>

int main()
{
    char arr1[] = "Welcome to NEWYORK!";
    char arr2[] = "*******************";
    int left = 0;
    int right = strlen(arr1) - 1;
    printf("%s\n",arr2);

    while (left <= right)
    {
        usleep(100000);
        arr2[left] = arr1[left];
        arr2[right] = arr1[right];
        left++;
        right--;
        system("clear");//清屏
        printf("%s\n",arr2);
        
    }

    

    return 0;
}